0.0
NA
CVE-2025-39902
mm/slub: avoid accessing metadata when pointer is invalid in object_err()
Description

In the Linux kernel, the following vulnerability has been resolved: mm/slub: avoid accessing metadata when pointer is invalid in object_err() object_err() reports details of an object for further debugging, such as the freelist pointer, redzone, etc. However, if the pointer is invalid, attempting to access object metadata can lead to a crash since it does not point to a valid object. One known path to the crash is when alloc_consistency_checks() determines the pointer to the allocated object is invalid because of a freelist corruption, and calls object_err() to report it. The debug code should report and handle the corruption gracefully and not crash in the process. In case the pointer is NULL or check_valid_pointer() returns false for the pointer, only print the pointer value and skip accessing metadata.

INFO

Published Date :

Oct. 1, 2025, 8:15 a.m.

Last Modified :

Oct. 1, 2025, 8:15 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-39902 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Fix memory corruption by validating pointers before accessing metadata.
  • Validate pointers before accessing object metadata.
  • Skip metadata access if pointer is invalid or NULL.
  • Handle corruption gracefully in debug code.
  • Update the Linux kernel to the latest version.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-39902 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-39902 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-39902 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-39902 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 01, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: mm/slub: avoid accessing metadata when pointer is invalid in object_err() object_err() reports details of an object for further debugging, such as the freelist pointer, redzone, etc. However, if the pointer is invalid, attempting to access object metadata can lead to a crash since it does not point to a valid object. One known path to the crash is when alloc_consistency_checks() determines the pointer to the allocated object is invalid because of a freelist corruption, and calls object_err() to report it. The debug code should report and handle the corruption gracefully and not crash in the process. In case the pointer is NULL or check_valid_pointer() returns false for the pointer, only print the pointer value and skip accessing metadata.
    Added Reference https://git.kernel.org/stable/c/0ef7058b4dc6fcef622ac23b45225db57f17b83f
    Added Reference https://git.kernel.org/stable/c/1f0797f17927b5cad0fb7eced422f9a7c30a3191
    Added Reference https://git.kernel.org/stable/c/3baa1da473e6e50281324ff1d332d1a07a3bb02e
    Added Reference https://git.kernel.org/stable/c/7e287256904ee796c9477e3ec92b07f236481ef3
    Added Reference https://git.kernel.org/stable/c/872f2c34ff232af1e65ad2df86d61163c8ffad42
    Added Reference https://git.kernel.org/stable/c/b4efccec8d06ceb10a7d34d7b1c449c569d53770
    Added Reference https://git.kernel.org/stable/c/dda6ec365ab04067adae40ef17015db447e90736
    Added Reference https://git.kernel.org/stable/c/f66012909e7bf383fcdc5850709ed5716073fdc4
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.